package com.gfxy.modules.classtime.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gfxy.modules.classtime.vo.ClasstimeScorePage;
import org.apache.ibatis.annotations.Param;
import com.gfxy.modules.classtime.entity.ClasstimeScore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 课时分数表
 * @Author: jeecg-boot
 * @Date:   2021-08-30
 * @Version: V1.0
 */
public interface ClasstimeScoreMapper extends BaseMapper<ClasstimeScore> {


    List<Map> getClasstimeScoreByYear(@Param("year") String year);

    Map getClasstimeScoreByYearAndTeacher(@Param("year")String year, @Param("teacherId")String teacherId);

    IPage<ClasstimeScorePage> getClasstimeScoreListByYearAndDep(Page<ClasstimeScorePage> page, @Param("year")String year, @Param("depCode")String depCode);

    ClasstimeScore getClasstimeReportCurrentDateByUsername(@Param("username")String username);

    ClasstimeScore getClasstimeScoreListByYearAndUsername(@Param("year")String year,@Param("username")String username);


}
